<%@ Control Language="C#"  %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<%@ Register Assembly="Syrinx.Gui.AspNet.NitobiCtls" Namespace="Syrinx.Gui.AspNet.NitobiCtls" TagPrefix="nit" %>
<div class="<%= styleClass(table) %>">
	<asp:Label ID="_baseTitleLbl" runat="server" Text="Title:" /><asp:TextBox ID="baseTitle" runat="server" Width="90%" MaxLength="500" /><br />
	<asp:Image ID="_primaryPicture_name" runat="server" ImageUrl="$mediaCacheName$/$imageRes$/$primaryPicture.name$" EnableViewState="false"/><br />
	<asp:Label ID="_metaTypeLbl" runat="server"  Text="Type:"/>
	<nit:NitobiComboBoxBizObjListDisplay id="metaType" runat="server" DataSourceBizRule="getArticleTypes" TextBoxWidth="149px" ListWidth="300px" LiveScroll="False">
        <columns>
            <Column field="id" /><Column field="name" />
        </columns>
    </nit:NitobiComboBoxBizObjListDisplay><br />
	<asp:HiddenField ID="summary" runat="server" />
	<asp:Label ID="_tel" runat="server">Telephone:</asp:Label>
	<input type="text" id="summaryTelNum" maxlength="15" onchange="updateSummary()" /><br />
	<asp:Label ID="_adr" runat="server">Address:</asp:Label>
	<input type="text" id="summaryAddr" maxlength="15" onchange="updateSummary()" /><br />
	<script>
		function updateSummary()
		{
		debugger;
			var tel = nitobi.html.getElement('summaryTelNum').value;
			var adr = nitobi.html.getElement('summaryAddr').value;
			var sumFld = nitobi.html.getElement('<%=ClientID %>_summary');
			sumFld.value = "Tel. No.:" + tel + "<br/>" + "Address:" + adr;
		}
	</script>
    <asp:TextBox ID="baseSummary" runat="server" BackColor="Transparent" Height="50px" Width="94%" onkeypress="if(this.value.length >=500)return false;" TextMode="MultiLine" />
	<asp:Label ID="_bodyLbl" runat="server" Text="Main Article Content:" /><br />
	<FTB:FreeTextBox ID="baseBody" runat="server" StartMode="DesignMode" BackColor="Transparent" ToolbarLayout="paragraphmenu,fontsizesmenu;bold,italic,underline|bulletedlist,numberedlist" Height="250px" Width="99%"></FTB:FreeTextBox>
</div>


